package com.heima.wemedia.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.heima.model.common.dtos.ResponseResult;
import com.heima.model.wemedia.dtos.MaterialDto;
import com.heima.model.wemedia.pojos.WmMaterial;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.util.List;

/**
 * @author 嘉德罗斯
 * @date 2021/11/22
 */
public interface WmMaterialService extends IService<WmMaterial> {
    ResponseResult find(MaterialDto dto,Integer id);

    ResponseResult upload(MultipartFile multipartFile, int id) throws IOException;

    ResponseResult delete(Integer id);

    ResponseResult collect(Integer id);

    ResponseResult cancel(Integer id);

    List<Integer> getMaterial(String[] images);
}
